/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package ru.ipccenter.beans;

import ru.ipccenter.entities.Human;

import javax.ejb.Local;
import java.sql.Timestamp;
import java.util.List;
/**
 *
 * @author sm-ni_000
 */
@Local
public interface HumanBeanLocal {
    void create(Human entity);
    void save(Human entity);
    void delete(Human entity);
    Human find(Object id);
    List<Human> findByName(String firstName, String lastName);
    List<Human> findByDate(Timestamp beginDate, Timestamp endDate);
    List<Human> findAll();
    Human findByLogin(String login);
}
